# for x in range(5):
#     for y in range(5):
#         print(x, end="\t")
#     print()

# todo for 循环打印99乘法表
# for a in range(1,10):
#     for b in range(1,a+1):
#         print(f"{a}*{b}={a*b}",end="\t")
#     print()

# todo while 循环打印99乘法表
i = 1
while i <= 9:
    j = 1
    while j <= i:
        print(f"{i}*{j}={i * j}", end="\t")
        j += 1
    print()
    i += 1

"""
1 2 3
1 2 3
1 2 3
"""
# i = 1
# while i < 4:
#     j = 1
#     while j < 4:
#         print(j, end="\t")
#         j += 1
#     print()
#     i += 1

# 打印三角形*
# i = 1
# while i < 17:
#     j = 1
#     while j <= i:
#         print("*", end="")
#         j += 1
#     i = j + 1
#     print()
# 打印从大到小的三角形1
i = 1
while i <= 5:
    j = 5
    while j >= i:
        print("*", end="")
        j -= 1
    print()
    i += 1
